package com.example.springboot.mapper;

import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.entity.Bike;
import com.example.springboot.entity.Bike;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:BikeMapper
 * Package:com.example.springboot.mapper
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/6 - 18:59
 */
@Mapper
public interface BikeMapper {

    List<Bike> list();

    List<Bike> listByCondition(BasePageRequest basePageRequest);

    void save(Bike category);

    Bike getById(int id);

    void updateById(Bike bike);

    void deleteById(int id);

    Bike getByName(String name);

}
